<template>
	<view>
		<view class="head">
			<view class="list-item">
				<view class="info-left">
					头像
				</view>
				<view class="info-right">
					<view class="head-portrait-wrap">
						<image src="../../static/images/register.jpg" class="head-portrait"></image>
					</view>
					<view class="uni-icon uni-icon-arrowright arrow-right-set"></view>
				</view>
			</view>
		</view>
		<view class="center">
			<view class="list-item" @tap="goModify()">
				<view class="info-left">昵称</view>
				<view class="info-right">
					<view class="username">{{username}}</view>
					<view class="uni-icon uni-icon-arrowright arrow-right-set"></view>
				</view>
			</view>
			<view class="list-item">
				<view class="info-left">关于音伴</view>
				<view class="info-right">
					<view class="uni-icon uni-icon-arrowright arrow-right-set"></view>
				</view>
			</view>
			<view class="list-item">
				<view class="info-left">帮助中心</view>
				<view class="info-right">
					<view class="uni-icon uni-icon-arrowright arrow-right-set"></view>
				</view>
			</view>
		</view>
		<view class="footer">
			<view class="login-out">退出登录</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				username:"大白兔"
			}
		},
		methods: {
			goModify(){
				uni.navigateTo({
					url: "../modifyName/modifyName?username="+this.username
				})
			}
		}
	}
</script>

<style>
page{
	background-color: #EEEEEE;
}
.info-left,.arrow-right-set,.username {
	color: #616161;
}
.list-item {
	padding: 0 20px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	border-top: 1px solid #D7D7D7; 
}
.head .list-item,.footer{
	margin-top: 10px;
	margin-bottom: 10px;
	border-bottom: 1px solid #D7D7D7;
}
.center .list-item{
	padding-top: 10px;
	padding-bottom: 10px;
}
.center .list-item:last-child{
	border-bottom: 1px solid #D7D7D7;
}
.info-left {
	font-size: 18px;
}
.info-right{
	display: flex;
	flex-direction: row;
	align-items: center;
}
.head-portrait-wrap {
	width: 60px;
	height: 100px;
	display: flex;
	justify-content: center;
	align-items: center;
	margin-right: 10px;
}
.head-portrait{
	width: 100%;
	height: 60px;
	border-radius: 50%;
}
.username{
	font-size: 16px;
	margin-right: 10px;
}
.footer { 
	display: flex;
	justify-content: center;
	border-top: 1px solid #D7D7D7;
}
.login-out{
	font-size: 25px;
	font-weight: 1000;
	color: #FFC107;
	text-align: center;
	padding: 10px 0;
}
</style>
